package org.neuedu.chapter09_0629.demo01;

public class UtilsDemo01 {
    public Object getData(Object data) {
        return "hello";
    }
    public static void main(String[] args) {
        Object[] arr = {1, "hello", 9.0};


        UtilsDemo01 ud1 = new UtilsDemo01();
        UtilsDemo01 ud2 = new UtilsDemo01();

//        System.out.println(ud1.equals(ud2));
//        System.out.println(ud1 == ud2);
//        System.out.println(6 == 5);

        Citizen c1 = new Citizen();
        c1.setIdCard(9527);
        c1.setUsername("华安");

        Citizen c2 = new Citizen();
        c2.setIdCard(9527);
        c2.setUsername("唐伯虎");

        System.out.println(c1 == c2);
        System.out.println(c1.equals(c2));

        System.out.println("hello".equals("world"));

        String str1 = "hello";
        String str2 = new String("hello");
        System.out.println(str1 == str2);
        System.out.println(str1.equals(str2));
    }
}
